﻿using System;
using System.Collections.Generic;
using FirstHomeWork.Utility;
using System.Text;

namespace FirstHomeWork.Model
{
    [Table("User")]
    public class UserModel : BaseModel
    {
        /// <summary>
        /// 无    
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 无    
        /// </summary>

        public string Account { get; set; }

        /// <summary>
        /// 无    
        /// </summary>
        [CustomString(_MinLeng = 6, _MaxLeng = 18)]
        public string Password { get; set; }

        /// <summary>
        /// 无    
        /// </summary>
        [Email]
        public string Email { get; set; }

        /// <summary>
        /// 无    
        /// </summary>

        public string Mobile { get; set; }

        /// <summary>
        /// 无    
        /// </summary>
        public int? CompanyId { get; set; }

        /// <summary>
        /// 无    
        /// </summary>
        public string CompanyName { get; set; }

        /// <summary>
        /// 用户状态  0正常 1冻结 2删除    
        /// </summary>
        public int State { get; set; }

        /// <summary>
        /// 用户类型  1 普通用户 2管理员 4超级管理员    
        /// </summary>
        public int UserType { get; set; }

        /// <summary>
        /// 无    
        /// </summary>
        public DateTime? LastLoginTime { get; set; }

        /// <summary>
        /// 无    
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 无    
        /// </summary>
        public int CreatorId { get; set; }

        /// <summary>
        /// 无    
        /// </summary>
        public int? LastModifierId { get; set; }

        /// <summary>
        /// 无    
        /// </summary>
        public DateTime? LastModifyTime { get; set; }
    }
}
